<%--                                                                       --%>
<%-- Copyright (c) 2001-2004 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
<%@ taglib uri="/WEB-INF/bv-html.tld" prefix="bvhtml" %>

<jsp:useBean id="groupView" scope="request" type="com.broadvision.web.util.ViewDynaBean"/> 
<script language="JavaScript">
<!--

function confirmDeleteGroup(theForm, actionUrl)
{
   if (confirm('<bean:message key="cs.confirm.delete.group"/>'))
   {
      theForm.action = actionUrl;
      theForm.submit();
   }
   else
   {
      return false;
   }
}

// -->
</script>


<!-- Zone 5 starts here.  -->
      
<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" 
       summary="content area">
  <tr>
    <td valign="top">
    
    <!--start microsite logo and name here-->
      <div class="pageTitle">
        <%@ include file="/cs/microsite/micrositeNaviInfo.jsp" %>
      </div> 
    <!--end microsite logo and name here-->
    
    <div class="pageSubtitle">
      <span class="left">
        <bean:write name="groupView" property="friendlyName"/>
      </span>
      <span class="right">
        <html:form action="/cs/groupEdit.do">
          <bvhtml:hiddenList name="micrositeNaviInfoView" property="urlParams" scope="request"/>
          <html:submit styleClass="pageButton" property="editBtn" titleKey="button.edit">
            <bean:message key="button.edit"/>
          </html:submit>
        
          <logic:notEqual name="groupView" property="systemGroup" value="true">           
            <input type="button" class="pageButton" name="deleteBtn" 
                   title='<bean:message key="button.delete" />' 
                   onclick='confirmDeleteGroup(this.form, "<html:rewrite page="/cs/groupDelete.do" />")'
                   value='<bean:message key="button.delete"/>'>
          </logic:notEqual>
        </html:form>
      </span>
    </div> 
    <!--end page title area here-->
    
    <div class="blockWrap">  

    <!--start main content area here-->
    <table class="labelForm" width="100%" border="0" cellspacing="0" 
            cellpadding="0" summary="Group Information">
      <tr>
        <td width="20%" class="label">
          <bean:message key="cs.name"/>:<br>
        </td>
        <td width="80%" nowrap class="labelField">
          <bean:write name="groupView" property="friendlyName" />
        </td>
      </tr>
  
      <tr>
        <td width="20%" class="label" valign="top">
          <bean:message key="cs.description"/>:
        </td>
        
        <td width="80%" nowrap class="labelField">
          <bean:write name="groupView" property="description" /> 
        </td>
      </tr>
    
      <tr>
        <td nowrap width="20%" class="label">
          <bean:message key="cs.document.access.role"/>:
        </td>
        <td width="80%" class="labelField">
          <logic:equal name="groupView" property="documentAccessRole" value="3">
            <bean:message key="cs.document.editor"/>
          </logic:equal>
          <logic:equal name="groupView" property="documentAccessRole" value="2">
            <bean:message key="cs.document.author"/>
          </logic:equal>
          <logic:equal name="groupView" property="documentAccessRole" value="1">
            <bean:message key="cs.document.reader"/>
          </logic:equal>
          <logic:equal name="groupView" property="documentAccessRole" value="0">
            <bean:message key="cs.document.no.access"/>
          </logic:equal>
        </td>
      </tr>
      <!-- start of user members section -->
      <tr> 
        <td nowrap width="20%" class="label">
          <bean:message key="cs.group.user.members"/>:
        </td> 
        <td width="80%" class="labelField">
    			<logic:equal name="groupView" property="participantGroup" value="true">
            <c:if test="${micrositeNaviInfoView.map.isMicrosite}">
              <bean:message key="cs.group.public.members.microsite"/>
            </c:if>
            <c:if test="${!micrositeNaviInfoView.map.isMicrosite}">
              <bean:message key="cs.group.public.members"/>
            </c:if>
          </logic:equal>
        </td>
      </tr>
    
 	  <logic:notEqual name="groupView" property="participantGroup" value="true">
        <logic:iterate id="oneMember" name="groupView" property="userMembers">
          <tr>
            <td nowrap width="20%" class="label">&nbsp;</td>
            <td width="80%" class="labelField">
              <bean:write name="oneMember" property="label" />
            </td>
          </tr>
        </logic:iterate>
      </logic:notEqual> 
  
      <!-- end of user members secion -->    

      <!-- start of group members section -->
      <logic:equal name="groupView" property="showMemberGroups" value="true">
        <tr> 
          <td nowrap width="20%" class="label">
            <bean:message key="cs.group.group.members"/>:
          </td> 
          <td width="80%" class="labelField">
            <logic:equal name="groupView" property="participantGroup" value="true">
              <bean:message key="cs.group.public.members"/>
            </logic:equal>
          </td>
        </tr>
    
 	    <logic:notEqual name="groupView" property="participantGroup" value="true">
          <logic:iterate id="oneMember" name="groupView" property="memberGroups">
            <tr>
              <td nowrap width="20%" class="label">&nbsp;</td>
              <td width="80%" class="labelField">
                <bean:write name="oneMember" property="label" />
              </td>
            </tr>
          </logic:iterate>
        </logic:notEqual> 
      </logic:equal>
      <!-- end of group members secion -->   
  
    </table>

    <!--end main content area here-->
    </div>

    </td>
  </tr>
</table>               
<!--end zone 5 content here -->